package server.mapper;

import org.dom4j.Element;

import java.io.InputStream;
import java.util.List;

public  class Service {
    private List<Element> elementList;
    private String port;

    public List<Element> getElementList() {
        return elementList;
    }

    public void setElementList(List<Element> elementList) {
        this.elementList = elementList;
    }

    public Conector getConector() {
        return conector;
    }

    public void setConector(Conector conector) {
        this.conector = conector;
    }

    private Conector conector;

    public Service(List<Element> elementList){
        // <Host name="localhost" appBase="D:/lucasMiniCat/webapps/"></Host>
        this.elementList = elementList;
        this.conector = new Conector(elementList);
        System.out.println(conector);
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }


}
